#include <scdl/parser/Symbol.hpp>

#include <cstdlib>
#include <cstring>
#include <iostream>

using std::cout;
using namespace scdl;

Parameter::Parameter()
        : index(-1)
{
}

Parameter::~Parameter()
{
}

SymbolCategory Parameter::getCategory()
{
        return CATEGORY_PARAMETER;
}

void Parameter::prettyPrint(bool verbose)
{
        cout << '$' << (index < 0 ? '?' : index) << "(" << getName() << ")";
}

void Parameter::setIndex(int idx)
{
        index = idx;
}

int Parameter::getIndex()
{
        return index;
}

